| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Public Member Functions | List of all members
nkAstraeus::LogManager Class Reference

Responsible for logging all messages from the component. By registering a nkLog::Logger inside, it is possible to listen to all messages logged. More...

Inheritance diagram for nkAstraeus::LogManager:

## Public Member Functions
| LogManager () noexcept
nkLog::Logger * | getReceiver () const
void | setReceiver (nkLog::Logger *receiver)
void | log (nkMemory::StringView message, nkMemory::StringView className)

## Detailed Description

Responsible for logging all messages from the component. By registering a nkLog::Logger inside, it is possible to listen to all messages logged.

## Constructor & Destructor Documentation

## ◆ LogManager()

nkAstraeus::LogManager::LogManager | ( |  | ) |
| noexcept

Constructor.

## Member Function Documentation

## ◆ getReceiver()

nkLog::Logger* nkAstraeus::LogManager::getReceiver | ( |  | ) | const

Returns
  The currently registered logger.

## ◆ setReceiver()

void nkAstraeus::LogManager::setReceiver | ( | nkLog::Logger * | receiver | ) |

Allows to set the logger that should receive the messages.

Parameters

  receiver | The logger to send messages to.

## ◆ log()

void nkAstraeus::LogManager::log | ( | nkMemory::StringView | message,
|  | nkMemory::StringView | className
| ) |  |

Called by component's classes to log messages they need to log.

Parameters

  message | The message to log.
  className | Bonus context information.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsAstraeus/Log/LogManager.h